package com.googlecode.droidcare.common.di;

import com.googlecode.droidcare.common.AppContext;
import com.googlecode.droidcare.common.api.exception.ExceptionHandler;
import com.googlecode.droidcare.common.api.net.HttpService;
import com.googlecode.droidcare.common.api.provider.ProviderService;
import com.googlecode.droidcare.common.impl.exception.ExceptionHandlerBasic;
import com.googlecode.droidcare.common.impl.net.ApacheHttpService;
import com.googlecode.droidcare.common.impl.provider.ProviderServiceJs;

public class GuiceModule extends BaseModule {

	@Override
	protected void configure() {
		requestStaticInjection(AppContext.class);
		bind(ExceptionHandler.class).to(ExceptionHandlerBasic.class);
		bind(BaseModule.class).to(GuiceModule.class);
		bind(HttpService.class).to(ApacheHttpService.class);
		bind(ProviderService.class).to(ProviderServiceJs.class);
	}

}
